Skip to content

feat(terraform): expose runner path as module output#785

Open
cbartz wants to merge 6 commits intomainfrom
feat/terraform-path-output
Open

feat(terraform): expose runner path as module output#785
cbartz wants to merge 6 commits intomainfrom
feat/terraform-path-output

Conversation

@cbartz
Copy link
Copy Markdown
Collaborator

@cbartz cbartz commented Apr 16, 2026

Applicable spec: N/A

Overview

Expose the configured GitHub path (org or repo) as a Terraform output at both the charm and product module levels.

Rationale

Consumers of the Terraform module need to make routing decisions based on which GitHub org or repo a self-hosted runner is registered to. The path config value was already passed through but not exposed as an output.

Juju Events Changes

None.

Module Changes

  • terraform/charm/outputs.tf: Added path output using lookup(var.config, "path", "").
  • terraform/product/outputs.tf: Added all_runner_paths output mapping each runner app name to its configured GitHub path.

Library Changes

None.

Checklist

  • The charm style guide was applied.
  • The contributing guide was applied.
  • The changes are compliant with ISD054 - Managing Charm Complexity
  • The documentation for charmhub is updated.
  • The PR is tagged with appropriate label (urgent, trivial, complex).
  • The changelog is updated with changes that affects the users of the charm.
  • The application version number is updated in github-runner-manager/pyproject.toml.

Allow consumers to access the configured GitHub path for each runner,
enabling routing decisions based on the org or repo a runner is registered to.
@cbartz cbartz enabled auto-merge (squash) April 24, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants